<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>常见问题</title>
    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
    <style>
        .opinion {
            position: absolute;
            right: 40px;
            top: 39px;
            background: #ea5718;
            border: 1px solid #ea5718;
            outline: medium;
            color: #fff;
        }

        .big {
            margin-top: 11px;
            height: 40px;
            background: #e2e2e2;
            padding-left: 18px;
            font-size: 17px;
            color: #000;
            line-height: 40px;
        }

        .small {
            font-size: 15px;
            margin: 30px 17px;
            color: #727272;
            line-height: 30px;
            color: #727272;
        }
        .small img{
          width: 100%;
          height: auto;
        }

        body {
            background-color: #fff;
        }
    </style>
</head>

<body>
    <div id="vm">
        <div class="big-box">
            <div class="big">{{messagelist1.question}}</div>
            <div class="small">
                <p v-html="messagelist1.editorValue"></p>
            </div>
        </div>
    </div>

</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/rest.js"></script>
<script type="text/javascript" src="../../script/vue.2.5.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/faskclick.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#vm',
        data: {
            messagelist1: [],
        },
        created: function() {
            var _this = this;
            apiready = function() {
                _this.init();
                api.parseTapmode();
                uid = $api.getStorage('uid');
                session = $api.getStorage('session');
                if ('addEventListener' in document) {
                    document.addEventListener('DOMContentLoaded', function() {
                        FastClick.attach(document.body);
                    }, false);
                }
            }
        },
        methods: {
            init: function() {
                var _this = this;
                // _this.messagelist1 =api.pageParam.problemdetail
                        // console.log(JSON.stringify(_this.messagelist1))
                new rest().post('get_qa_detail').datae({
                    id: api.pageParam.problemdetail.id
                }).success(function(res) {
                    if (res.flag == 1) {
                       _this.messagelist1 = res.msg
                        console.log(JSON.stringify(res.msg))
                    } else {
                        api.toast({
                            msg: res.msg,
                            duration: 2000,
                            location: 'middle'
                        });
                    }
                }).error(function(err) {
                    console.log(JSON.stringify(err))
                }).run()
            }
        }
    })

    function OpenFeedBackWin() {
        api.openWin({
            name: 'verifyfeedback',
            url: './verify-feedback_win.html',
        });
    }
</script>

</html>
